package com.klod.ext

import com.klod.data.bean.BaseResponseBean
import io.ktor.http.*
import io.ktor.server.response.*
import io.ktor.server.routing.*

fun Any?.responseSuccess() =
    BaseResponseBean.success(this)


fun String.responseFail() =
    BaseResponseBean.fail(this)

